<?php
	session_start();
	if(isset($_SESSION['tenhinh_moi']) || isset($_SESSION['tenhinhthumbnail_moi']))
	{
		unlink("../../upload/".$_SESSION['tenhinh_moi']);
		unlink("../../upload/".$_SESSION['tenhinhthumbnail_moi']);
		unset($_SESSION['tenhinh_moi']);
		unset($_SESSION['tenhinhthumbnail_moi']);
		if(isset($_GET['stt']))
			header( "location:../admin_themmoi.php");
		else
			header( "location:../admin_index.php");
	}
	else
	{
		if(isset($_GET['stt']))
			header( "location:../admin_themmoi.php");
		else
			header( "location:../admin_index.php");
		
		}
?>